export function getBaseUrl() {
  let server = '/'
  if (process.env.NODE_ENV === 'production') {
    server = getWebServer()
  }
  return server
}

export function getRequestKey() {
  let requestKey = 'storecenter_qa'
  if (process.env.SYSTEM_ENV === 'prod') {
    requestKey = 'y1d2BkFPQkDZGTfv5uun3kuyURW4S4GC'
  }
  return requestKey
}

function getWebServer() {
  return window.location.protocol + '//' + window.location.host
}

export function getBaseWebUrl() {
  return getWebServer() + ':' + window.location.port
}
